<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="l-articles">
   <?php include template("content","left"); ?>
   <div class="l-right">
        <div class="partials--page-title">
            <div class="title">
               <span class="zh"><?php echo $catname;?></span>
            </div>
        </div>
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=2058cc1aa8039bf1f67df92fff9767af&action=lists&catid=%24catid&num=9&page=%24page&order=id+DESC&siteid=%24siteid&return=vidArr\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','siteid'=>$siteid,'limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$vidArr = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','siteid'=>$siteid,'limit'=>$offset.",".$pagesize,'action'=>'lists',));}?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        <ul class="articles video">
        <?php $n=1;if(is_array($vidArr)) foreach($vidArr AS $vid) { ?>
            <li class="item">
                <a class="picture" href="<?php echo $vid['url'];?>" target="_blank"><img src="<?php echo $vid['thumb'];?>">
                </a>
                <a class="name" href="<?php echo $vid['url'];?>" target="_blank"><?php echo $vid['title'];?></a>
            </li>
        <?php $n++;}unset($n); ?>
        </ul>
        <ul class="partials--pager"><?php echo $pages;?></ul>
    </div>
</div>
<?php include template("content","footer"); ?>